﻿import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-12-12
 * Time: 17:09
 */
public class Demo1 {
   
   public static void main(String[] args) {

        Scanner scan= new Scanner(System.in);
        
        while(scan.hasNext()) {
            String str = scan.next();
            String[] arr = str.split("_");
            String strLine = arr[0];
            
            for(int i = 1; i < arr.length; i++) {
                char[] ch = arr[i].toCharArray();
                ch[0] -= 32;
                strLine += String.valueOf(ch);
            }
            System.out.println(strLine);
        }
    } 
}
